import request from '@/utils/request'

// 查询审核记录列表
export function listAuditRecord(query) {
  return request({
    url: '/crm/auditRecord/list',
    method: 'get',
    params: query
  })
}

// 查询审核记录详细
export function getAuditRecord(recordId) {
  return request({
    url: '/crm/auditRecord/' + recordId,
    method: 'get'
  })
}

// 新增审核记录
export function addAuditRecord(data) {
  return request({
    url: '/crm/auditRecord',
    method: 'post',
    data: data
  })
}

// 修改审核记录
export function updateAuditRecord(data) {
  return request({
    url: '/crm/auditRecord',
    method: 'put',
    data: data
  })
}

// 删除审核记录
export function delAuditRecord(recordId) {
  return request({
    url: '/crm/auditRecord/' + recordId,
    method: 'delete'
  })
}

// 导出审核记录
export function exportAuditRecord(query) {
  return request({
    url: '/crm/auditRecord/export',
    method: 'get',
    params: query
  })
}